package com.tedu.day05mybatis.Mapper;

import com.tedu.day05mybatis.pojo.Weibo;
import com.tedu.day05mybatis.pojo.WeiboV01;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface WeiboMapper {
 //   @Select("SELECT  content,created FROM  weibo WHERE id=#{id}")
//    Weibo selectContent(int id);
    WeiboV01 selectContent(int id);
//    @Insert("INSERT INTO weibo (content,created,user_id) VALUES (#{content},#{created},#{userId})")
    int insert(Weibo weibo);
    int deleteById(Integer id);
    int updateById(Weibo weibo);
    Weibo findById(Integer id);
    List<Weibo> findAll();
    WeiboV01 selectContent(Integer id);
    int dynamicUpdate(Weibo weibo);
    int deleteByIds(int[] id);

}
